package com.qezhhnjy.demo.swagger3.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@ApiModel("商品模型")
@Data
public class Good {
    //商品id
    @ApiModelProperty("商品id")
    Long goodsId;
    //库存
    @ApiModelProperty("商品库存")
    int  stock;
    //商品名称
    @ApiModelProperty("商品名称")
    private String     goodsName;
    //商品标题
    @ApiModelProperty("商品标题")
    private String     subject;
    //商品价格
    @ApiModelProperty("商品价格")
    private BigDecimal price;

}
